package com.pwt.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@Schema(name = "角色授权模型")
public class RoleGrantsModel {
    @Schema(name = "roleId",description = "角色ID")
    @NotBlank(message = "角色ID不能为空")
    private String roleId;

    @Schema(name = "menuIds",description = "菜单ID")
    @NotNull(message = "菜单ID不能为空")
    @Size(min = 1,message = "菜单ID不能为空")
    private List<String> menuIds;
}
